<?php

Yii::import('zii.widgets.CPortlet');

class LatestNews extends CPortlet
{
	//public $title='Recent Comments';
	public $maxComments=10;

	public function getLatestNews()
	{
		return Post::model()->getLatestNews();
	}

	protected function renderContent()
	{
		$this->render('latestNews');
	}
}